﻿<UserControl x:Class="EzDesk.DesktopClient.UtilityView.View.TopPanelView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="300"  MouseLeftButtonDown="UserControl_MouseLeftButtonDown">
    <Border CornerRadius="5,5,0,0">
        <Grid Margin="5,0,0,0">
            <Image HorizontalAlignment="Left" Width="14" Height="14" Margin="5,5,0,0" Source="{Binding OrganizationModel.IconUrl,Converter={StaticResource ImageCacherConverter}}"/>
            <TextBlock Text="{Binding OrganizationModel.Title}" VerticalAlignment="Center" FontWeight="Bold" Foreground="#FF14316B" Margin="25,5,0,0" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Rectangle Stroke="Black" Width="1" StrokeThickness="0" Margin="0,1">
                	<Rectangle.Fill>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="DarkGray" Offset="0"/>
                			<GradientStop Color="#00A9A9A9" Offset="1"/>
                		</LinearGradientBrush>
                	</Rectangle.Fill>
                </Rectangle>
                <Button x:Name="MinimizeBtn" Margin="1"  Style="{StaticResource MinisizeButtonStyle}" Click="MinimizeBtn_Click" Height="16" Width="16" Visibility="Collapsed"/>
                <Button x:Name="CloseBtn" Margin="1" Style="{StaticResource CloseButtonStyle}" Click="CloseBtn_Click"  Height="16" Width="16" Visibility="Collapsed"/>
            	<Button Height="18" Style="{DynamicResource MinButtonStyle}" Width="40" Click="MinimizeBtn_Click" Foreground="#FF8F8E8F" FontFamily="Webdings" FontSize="14.667">
            		<Button.Background>
            			<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
            				<GradientStop Color="#FFF3F3F3" Offset="0"/>
            				<GradientStop Color="#FFCDCDCD" Offset="1"/>
            			</LinearGradientBrush>
            		</Button.Background>
            		<TextBlock Text="0" FontFamily="Webdings" Foreground="#FF8F8E8F" FontSize="14.667"/>
            	</Button>
            	<Button Height="18" Style="{DynamicResource ExitButtonStyle}" Width="40" Click="CloseBtn_Click" Foreground="#FF8F8E8F" Margin="0,1" FontFamily="Webdings" FontSize="14.667">
            		<TextBlock Text="r" FontFamily="Webdings" Foreground="#FF8F8E8F" FontSize="14.667"/>
            	</Button>
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
